package cn.itcast.dao;

import cn.itcast.pojo.User;
import org.springframework.stereotype.Component;

/**
 * Author: Saka
 * Date: 2019/1/10
 * Time: 14:42
 */
@Component
public class UserFeginFallback implements UserFeignClient {
    @Override
    public User queryUserById(Long id) {
        User user = new User();
        user.setUserName(id+"调用失败,滚回去吧!!!!");
        return user;
    }
}
